﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Csharpzuoye.Migrations
{
    public partial class UserCreateTimeIndex : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "CreaTime",
                table: "Register",
                newName: "CreateTime");

            migrationBuilder.CreateIndex(
                name: "IX_Register_CreateTime",
                table: "Register",
                column: "CreateTime",
                unique: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_Register_CreateTime",
                table: "Register");

            migrationBuilder.RenameColumn(
                name: "CreateTime",
                table: "Register",
                newName: "CreaTime");
        }
    }
}
